//
//  InboxCell.h
//  HotWord
//
//  Created by Ji Qi on 12-6-30.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ITTImageView.h"
#import "Message.h"

@protocol InboxCellDelegate;
@interface InboxCell : UITableViewCell

@property (retain, nonatomic) Message *message;
@property (retain, nonatomic) IBOutlet UILabel *nicknameLable;
@property (retain, nonatomic) IBOutlet UILabel *contentLable;
@property (retain, nonatomic) IBOutlet ITTImageView *userHeadImageView;
@property (retain, nonatomic) IBOutlet UILabel *isNewMessage;
@property (retain, nonatomic) IBOutlet UILabel *timeLabel;
@property (retain, nonatomic) IBOutlet UIButton *deleteBtn;
@property (assign, nonatomic) id<InboxCellDelegate> delegate;
@property (assign, nonatomic) BOOL isDeleting;
@property (retain, nonatomic) NSIndexPath *indexPath;

- (void)setMessageForCell:(Message *)aMessage;
- (IBAction)tapOnDeleteBtn:(id)sender;

@end

@protocol InboxCellDelegate <NSObject>

- (void)InboxCellDidDelete:(InboxCell *)inboxCell;

- (void)InboxHeaderDidSelected:(InboxCell *)inboxCell;

@end